package FactoryMode.version2;

public class LeiFengMain {

    public static void main(String[] args) {
        IFactory factory=new UndergraduateFactory();
        LeiFeng student=factory.CreateLeiFeng();
        student.BuyRice();
        student.Sweep();
        student.Wash();
    }
}
